package com.itdl.config;

import com.github.tobato.fastdfs.FdfsClientConfig;
import com.itdl.condition.FastDfsCondition;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;

/**
 * @author: itdl
 * @date: 2022/3/7 14:52
 * @description: fastdfs配置类
 * @version: 1.0
 */
@Configuration
@Conditional(FastDfsCondition.class)
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)//解决jmx重复注册bean问题
@Import(FdfsClientConfig.class)// 导入fastdfs的客户端配置类
public class FastDfsConfig {

}
